<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="format-detection" content="telephone=no" />
<meta name="apple-touch-fullscreen" content="YES" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="MobileOptimized" content="320" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<title>上品生活</title>
<link href="css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery1.42.min.js"></script>
</head>

<body>
<div class="top"><a href="#"><img src="images/tb.png"/></a>
    <p>评价宝贝</p>
</div>

<div class="S-user_head">
  <img class="product" src="images/p_07.jpg" />
  <p class="m4">cynthia</p>
  <p class="m3" style="padding-top:0px;">￥30.00</p>
</div>
<div class="S-contents_box1">
   <p class="r"><label><input type="radio" name="pingjia" value="1" checked="checked" /> 好评</label><label><input type="radio" name="pingjia" value="2" /> 中评</label><label><input type="radio" name="pingjia" value="3" /> 差评</label></p>
   <textarea name="" class="text" placeholder="写下对宝贝的感受..."></textarea>
   <p class="p"><span>给卖家评分</span><i class="S-xin_red"></i><i class="S-xin_red"></i><i class="S-xin"></i><input type="hidden" name="pj" id="pj" value="2" /></p>
</div>
<div class="S-form_box"><input type="submit" class="sub" value="发布评论"></div>  
<script type="text/javascript">
$(document).ready(function(e) {
    $(".S-contents_box1 p.p i").click(function(){
	    var myindex = $(this).index();
		for(var i=0;i<myindex;i++){
			$(".S-contents_box1 p.p i").eq(i).removeClass("S-xin").addClass("S-xin_red");
		}
		for(var i=myindex;i<3;i++){
			$(".S-contents_box1 p.p i").eq(i).removeClass("S-xin_red").addClass("S-xin");
		}
		$("#pj").val(myindex);
	})
});
</script>

<div id="master_foot">
  <a href="" class="cover"><img src="images/bottom_10.png"><span>首页</span></a><a href=""><img src="images/bottom_12.png"><span>商品</span></a><a href=""><img src="images/bottom_03.png"><span>发布</span></a><a href="" class="xx"><i>1</i><img src="images/bottom_05.png"><span>信息</span></a><a href=""><img src="images/bottom_07.png"><span>我的</span></a>
</div>
  
</body>
</html>
